home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / vsrc.tar / voyager7_src / voyager.mak < prev   
Makefile  |  1991-02-27  |  7KB  |  217 lines

  1. PROJ = VOYAGER
  2. PROJFILE = VOYAGER.MAK
  3. DEBUG = 1
  4.  
  5. CC  = cl
  6. CFLAGS_G  = /AL /W3 /G2 /BATCH
  7. CFLAGS_D  = /qc /Od /Zi /Zr /Gi$(PROJ).mdt
  8. CFLAGS_R  = /Ot
  9. ASM  = masm
  10. AFLAGS_G  = /Mx /T
  11. AFLAGS_D  = /Zi
  12. PWBRMAKE  = pwbrmake
  13. NMAKEBSC1  = set
  14. NMAKEBSC2  = nmake
  15. LINKER    = link
  16. ILINK  = ilink
  17. LRF  = echo > NUL
  18. BIND  = bind
  19. RC  = rc
  20. IMPLIB    = implib
  21. LFLAGS_G  = /NOI /ST:4096  /BATCH
  22. LFLAGS_D  = /CO /INC /F /PACKC
  23. LFLAGS_R  = /E /F /PACKC
  24. MAPFILE_D  = NUL
  25. MAPFILE_R  = NUL
  26.  
  27. OBJS  = VOYAGER.obj COMMANDS.obj DUMP.obj FIND.obj HELP.obj INDEX.obj\
  28.     INSTRUCT.obj LIST.obj MEMORY.obj MODES.obj OBJECTS.obj PAGER.obj\
  29.     PORTS.obj SEARCH.obj TA.obj TREE.obj
  30. SBRS  = VOYAGER.sbr COMMANDS.sbr DUMP.sbr FIND.sbr HELP.sbr INDEX.sbr\
  31.     INSTRUCT.sbr LIST.sbr MEMORY.sbr MODES.sbr OBJECTS.sbr PAGER.sbr\
  32.     PORTS.sbr SEARCH.sbr TA.sbr TREE.sbr
  33.  
  34. all: $(PROJ).exe
  35.  
  36. .SUFFIXES: .c .obj .sbr
  37.  
  38. VOYAGER.obj : VOYAGER.C commands.h ports.h
  39.  
  40. VOYAGER.sbr : VOYAGER.C commands.h ports.h
  41.  
  42. COMMANDS.obj : COMMANDS.C D:\C600\INCLUDE\malloc.h D:\C600\INCLUDE\stdio.h\
  43.     D:\C600\INCLUDE\stdlib.h D:\C600\INCLUDE\string.h commands.h dump.h\
  44.     find.h list.h memory.h modes.h objects.h pager.h ports.h search.h\
  45.     version.h voyager.h index.h
  46.  
  47. COMMANDS.sbr : COMMANDS.C D:\C600\INCLUDE\malloc.h D:\C600\INCLUDE\stdio.h\
  48.     D:\C600\INCLUDE\stdlib.h D:\C600\INCLUDE\string.h commands.h dump.h\
  49.     find.h list.h memory.h modes.h objects.h pager.h ports.h search.h\
  50.     version.h voyager.h index.h
  51.  
  52. DUMP.obj : DUMP.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\string.h\
  53.     D:\C600\INCLUDE\stdio.h D:\C600\INCLUDE\stdlib.h dump.h memory.h\
  54.     modes.h pager.h voyager.h index.h
  55.  
  56. DUMP.sbr : DUMP.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\string.h\
  57.     D:\C600\INCLUDE\stdio.h D:\C600\INCLUDE\stdlib.h dump.h memory.h\
  58.     modes.h pager.h voyager.h index.h
  59.  
  60. FIND.obj : FIND.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  61.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h find.h index.h memory.h\
  62.     pager.h tree.h D:\C600\INCLUDE\stdio.h voyager.h
  63.  
  64. FIND.sbr : FIND.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  65.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h find.h index.h memory.h\
  66.     pager.h tree.h D:\C600\INCLUDE\stdio.h voyager.h
  67.  
  68. HELP.obj : HELP.C D:\C600\INCLUDE\stdio.h help.h pager.h
  69.  
  70. HELP.sbr : HELP.C D:\C600\INCLUDE\stdio.h help.h pager.h
  71.  
  72. INDEX.obj : INDEX.C D:\C600\INCLUDE\stdlib.h D:\C600\INCLUDE\stdio.h\
  73.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h\
  74.     D:\C600\INCLUDE\sys\types.h D:\C600\INCLUDE\sys\stat.h index.h\
  75.     memory.h modes.h tree.h voyager.h
  76.  
  77. INDEX.sbr : INDEX.C D:\C600\INCLUDE\stdlib.h D:\C600\INCLUDE\stdio.h\
  78.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h\
  79.     D:\C600\INCLUDE\sys\types.h D:\C600\INCLUDE\sys\stat.h index.h\
  80.     memory.h modes.h tree.h voyager.h
  81.  
  82. INSTRUCT.obj : INSTRUCT.C D:\C600\INCLUDE\string.h D:\C600\INCLUDE\ctype.h\
  83.     modes.h pager.h memory.h index.h instruct.h D:\C600\INCLUDE\stdlib.h\
  84.     voyager.h D:\C600\INCLUDE\stdio.h
  85.  
  86. INSTRUCT.sbr : INSTRUCT.C D:\C600\INCLUDE\string.h D:\C600\INCLUDE\ctype.h\
  87.     modes.h pager.h memory.h index.h instruct.h D:\C600\INCLUDE\stdlib.h\
  88.     voyager.h D:\C600\INCLUDE\stdio.h
  89.  
  90. LIST.obj : LIST.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  91.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h list.h index.h memory.h\
  92.     pager.h tree.h D:\C600\INCLUDE\stdio.h voyager.h
  93.  
  94. LIST.sbr : LIST.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  95.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h list.h index.h memory.h\
  96.     pager.h tree.h D:\C600\INCLUDE\stdio.h voyager.h
  97.  
  98. MEMORY.obj : MEMORY.C D:\C600\INCLUDE\string.h D:\C600\INCLUDE\stdlib.h\
  99.     index.h memory.h pager.h instruct.h D:\C600\INCLUDE\stdio.h voyager.h
  100.  
  101. MEMORY.sbr : MEMORY.C D:\C600\INCLUDE\string.h D:\C600\INCLUDE\stdlib.h\
  102.     index.h memory.h pager.h instruct.h D:\C600\INCLUDE\stdio.h voyager.h
  103.  
  104. MODES.obj : MODES.C modes.h
  105.  
  106. MODES.sbr : MODES.C modes.h
  107.  
  108. OBJECTS.obj : OBJECTS.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\io.h\
  109.     D:\C600\INCLUDE\stdlib.h D:\C600\INCLUDE\string.h memory.h modes.h\
  110.     objects.h pager.h index.h instruct.h voyager.h D:\C600\INCLUDE\stdio.h
  111.  
  112. OBJECTS.sbr : OBJECTS.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\io.h\
  113.     D:\C600\INCLUDE\stdlib.h D:\C600\INCLUDE\string.h memory.h modes.h\
  114.     objects.h pager.h index.h instruct.h voyager.h D:\C600\INCLUDE\stdio.h
  115.  
  116. PAGER.obj : PAGER.C D:\C600\INCLUDE\conio.h D:\C600\INCLUDE\stdio.h pager.h\
  117.     modes.h
  118.  
  119. PAGER.sbr : PAGER.C D:\C600\INCLUDE\conio.h D:\C600\INCLUDE\stdio.h pager.h\
  120.     modes.h
  121.  
  122. PORTS.obj : PORTS.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  123.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h D:\C600\INCLUDE\time.h\
  124.     memory.h index.h modes.h ports.h voyager.h D:\C600\INCLUDE\stdio.h
  125.  
  126. PORTS.sbr : PORTS.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  127.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h D:\C600\INCLUDE\time.h\
  128.     memory.h index.h modes.h ports.h voyager.h D:\C600\INCLUDE\stdio.h
  129.  
  130. SEARCH.obj : SEARCH.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  131.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h memory.h modes.h pager.h\
  132.     voyager.h index.h D:\C600\INCLUDE\stdio.h
  133.  
  134. SEARCH.sbr : SEARCH.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  135.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h memory.h modes.h pager.h\
  136.     voyager.h index.h D:\C600\INCLUDE\stdio.h
  137.  
  138. TA.obj : TA.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  139.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h memory.h commands.h\
  140.     modes.h objects.h instruct.h ports.h voyager.h index.h\
  141.     D:\C600\INCLUDE\stdio.h
  142.  
  143. TA.sbr : TA.C D:\C600\INCLUDE\ctype.h D:\C600\INCLUDE\stdlib.h\
  144.     D:\C600\INCLUDE\string.h D:\C600\INCLUDE\io.h memory.h commands.h\
  145.     modes.h objects.h instruct.h ports.h voyager.h index.h\
  146.     D:\C600\INCLUDE\stdio.h
  147.  
  148. TREE.obj : TREE.C D:\C600\INCLUDE\stddef.h D:\C600\INCLUDE\stdio.h
  149.  
  150. TREE.sbr : TREE.C D:\C600\INCLUDE\stddef.h D:\C600\INCLUDE\stdio.h
  151.  
  152.  
  153. $(PROJ).bsc : $(SBRS)
  154.     $(PWBRMAKE) @<<
  155. $(BRFLAGS) $(SBRS)
  156. <<
  157.  
  158. $(PROJ).exe : $(OBJS)
  159. !IF $(DEBUG)
  160.     $(LRF) @<<$(PROJ).lrf
  161. $(RT_OBJS: = +^
  162. ) $(OBJS: = +^
  163. )
  164. $@
  165. $(MAPFILE_D)
  166. $(LLIBS_G: = +^
  167. ) +
  168. $(LLIBS_D: = +^
  169. ) +
  170. $(LIBS: = +^
  171. )
  172. $(DEF_FILE) $(LFLAGS_G) $(LFLAGS_D);
  173. <<
  174. !ELSE
  175.     $(LRF) @<<$(PROJ).lrf
  176. $(RT_OBJS: = +^
  177. ) $(OBJS: = +^
  178. )
  179. $@
  180. $(MAPFILE_R)
  181. $(LLIBS_G: = +^
  182. ) +
  183. $(LLIBS_R: = +^
  184. ) +
  185. $(LIBS: = +^
  186. )
  187. $(DEF_FILE) $(LFLAGS_G) $(LFLAGS_R);
  188. <<
  189. !ENDIF
  190. !IF $(DEBUG)
  191.     $(ILINK) -a -e "$(LINKER) @$(PROJ).lrf" $@
  192. !ELSE
  193.     $(LINKER) @$(PROJ).lrf
  194. !ENDIF
  195.  
  196.  
  197. .c.obj :
  198. !IF $(DEBUG)
  199.     $(CC) /c $(CFLAGS_G) $(CFLAGS_D) /Fo$@ $<
  200. !ELSE
  201.     $(CC) /c $(CFLAGS_G) $(CFLAGS_R) /Fo$@ $<
  202. !ENDIF
  203.  
  204. .c.sbr :
  205. !IF $(DEBUG)
  206.     $(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FR$@ $<
  207. !ELSE
  208.     $(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FR$@ $<
  209. !ENDIF
  210.  
  211.  
  212. run: $(PROJ).exe
  213.     $(PROJ).exe $(RUNFLAGS)
  214.  
  215. debug: $(PROJ).exe
  216.     CV $(CVFLAGS) $(PROJ).exe $(RUNFLAGS)
  217.